.dropdown-folder-container { margin:-15px 0px -15px }

.dropdown-folder-title {
    margin: 0px -15px 0px;
    padding: 0px 15px;
    border-bottom: 1px solid rgba($border, .1);
}

.dropdown-folder-title > p {
    height: 11px;
    line-height: 14px;
}

.dropdown-folder-search {
    @include flexRow();
    @include flexAlignCenter();
    margin: 0px -5px;
    padding: 0px 5px;


    .fa.dropdown-folder-search-icon {
        font-size: 1em;
        color: $primary;
        margin-right: 10px;
    }

    .dropdown-folder-search-input {
        @include flexFill();
        height: 30px;
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        width: 100%;
        font-size: 1em;
        -webkit-appearance: none;
           -moz-appearance: none;
                appearance: none;
    }
}

.dropdown-folder-fullwidth,
.dropdown-folder-create.pm_button {
    display: block;
    margin: 0 -15px;
    padding: 0rem 15px;
}

.dropdown-folder-create.pm_button { margin: .5rem -10px }

.dropdown-folder-create-value {
    color: $black;
}

.dropdown-folder-create-value:not(:empty)::after,
.dropdown-folder-create-value:not(:empty)::before {
    content: '"'
}

/* scrollbox */
.scrollbox-container-group .dropdown-folder-scrollbox-group-item-button,
.scrollbox-container-group .dropdown-folder-scrollbox-group-item-button:hover {
    background: transparent;
    width: 100%; /* input next to it */
    border: 0;
    padding: .5rem 0;
    text-align: left;
    cursor: pointer;
    line-height: normal;
    display: block;
    box-shadow: none;
}

.dropdown-folder-scrollbox-group-item-button > div {
    @include flexRow();
    @include flexAlignCenter();
    pointer-events: none;
}

.dropdown-folder-scrollbox-group-item-icon {
    margin-right: 10px;
    font-size: 16px;
    pointer-events: none;
}

.dropdown-folder-create .dropdown-folder-create-button,
.dropdown-folder-create .dropdown-folder-create-button:hover {
    height: initial;
    min-height: 40px;
    width: 100%;
    padding: 0px;
    border:0;
    line-height: 16px;
    font-weight: bold;
    background: transparent;
    word-wrap: break-word;
    text-transform: none;
    text-align: left;
    color: $primary;
    cursor: pointer;
    box-shadow: none;
}

.dropdown-folder-create-button-inner {
    border: 1px solid transparent; // yes, this makes no sense, but fixes a glitch bug on Edge
    // see https://github.com/ProtonMail/Angular/issues/8586
}

.dropdown-folder-create-button > * {
    pointer-events: none;
}

.appConfigBody-is-mobile {
    .dropdown-folder-scrollbox-group-item  {
        padding: 0;
        margin-bottom: 5px;
    }
    .dropdown-folder-scrollbox-group-item-button {
        height: 35px;
        padding: 0px 10px
    }
}
